package com.kktestspb.demo.controller;

import com.kktestspb.demo.polo.Visitor;
import com.kktestspb.demo.services.VisitorServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 来访者记录controller
 * @author kk
 * @date 2019-09-01 20:29
 */
@RestController
public class VisitorController {

    @Autowired
    VisitorServices visitorServices;

    @RequestMapping(value = "/getVisitorList")
    public List<Visitor> getAllVisitors(){
        return visitorServices.getVisitors();
    }

}
